package bean;

import java.util.List;

public class IterationPoint {
    private MagneticNode node;
    private List<IterationPoint> sonNodes;

    public IterationPoint() {
        super();
    }

    public IterationPoint(MagneticNode node) {
        this.node = node;
    }

    public IterationPoint(MagneticNode node, List<IterationPoint> sonNodes) {
        super();
        this.node = node;
        this.sonNodes = sonNodes;
    }

    public List<IterationPoint> getSonNodes() {
        return sonNodes;
    }

    public void setSonNodes(List<IterationPoint> sonNodes) {
        this.sonNodes = sonNodes;
    }

    public MagneticNode getNode() {
        return node;
    }

    public void setNode(MagneticNode node) {
        this.node = node;
    }

    @Override
    public String toString() {
        return "point{" +
                "node=" + node +
                ", sonNodes=" + sonNodes +
                '}';
    }
}
